package com.hxkj.shiro;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.shiro.authc.AuthenticationToken;

@Data
@AllArgsConstructor
public class StatelessToken implements AuthenticationToken {

    @Accessors(chain = true)
    private String account;
    @Accessors(chain = true)
    private String token;

    @Override
    public Object getPrincipal() {
        return this.account;
    }

    @Override
    public Object getCredentials() {
        return this.token;
    }
}
